/* 都有的已引用文档统筹 */

/* 设置一整屏页面 */
html,
body {
  height: 100%;
  width: 100%;
}

/* 重置body大小 纵向布局*/
body {
  font-size: 0.24rem;

}

#app2 {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* -----------------------#header -------------------------*/
#header {
  height: 0.96rem;
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  margin-bottom: 0.06rem;
}

#header input {
  padding-left: 0.7rem;
  box-sizing: border-box;
  height: 0.68rem;
  background: #eeeeee url(../images/首页-01-搜索图标.png) no-repeat 3% 50%;
  background-size: 0.01rem 0.01rem;
  border-radius: 0.68rem;
  width: 5rem;
}

#header .on {
  position: relative;
}

#header .on::after {
  content: "";
  position: absolute;
  left: 0.03rem;
  bottom: -0.2rem;
  height: 0.4rem;
  width:  0.4rem;
  border-bottom-left-radius: 0.4rem;
  border-bottom-right-radius: 0.4rem;
  border-bottom: 0.01rem solid #e0a4c0;
}

/* -----------------------#nav -------------------------*/
#nav {
  width: 100%;
  height: 3.5rem;
  /* background: yellow; */
  border-bottom: 0.01rem solid #d3d3d3;
  box-sizing: border-box;
  padding: 1% 0 1% 0;
}

#nav>ul {
  width: 100%;
  height: 30%;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1%;
}

#nav>ul>li {
  width: 25%;
  height: 70%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  /* background: red; */
  margin-bottom: 30%;
}

#nav>ul>li img {
  width: 30%;
  height: 60%;
  margin-bottom: 1%;
}

#nav>ol {
  width: 100%;
  height: 60%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  /* background: blue; */
}

#nav>ol>li {
  width: 25%;
  height: 60%;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* background: red; */
}

#nav>ol>li img {
  width: 23%;
  height: 50%;
  margin-bottom: 10%;
}

/* -----------------------#main -------------------------*/
#main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: auto;
}

/* 限时秒杀 */
.main_top,
.new_product,
.new_pepole,
.main_bottom {
  height: 3rem;
  box-sizing: border-box;
  padding-left: 0.2rem;
  /* padding-top: 0.2rem; */
}

.main_top {
  display: flex;
  align-items: center;
  border-bottom: 0.01rem solid #e5e5e5;
}

.main_top>div {
  width: 50%;
  height: 100%;
  box-sizing: border-box;
}

.killing {
  border-right: 0.01rem solid #e5e5e5;
}

.sametop .samep {
  width: 100%;
  display: flex;
  align-items: center;
  font-size: 0.28rem;
  height: 30%;
  font-weight: bolder;
  color: #000;
}

.sametop>p span {
  font-size: 0.12rem;
  height: 70%;
  width: 60%;
  border: 0.01rem solid #fcb5d5;
  border-radius: 0.18rem;
  overflow: hidden;
  margin-left: 2%;
}

.sametop>p button {
  height: 100%;
  width: 50%;
  background: #fd76b0;
  color: #fff;
  border-bottom-right-radius: 0.18rem;
  border-top-right-radius: 0.18rem;
}

.sametop>section {
  height: 90%;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.killing>section div {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.killing>section p {
  color: #fd76b0;
  font-size: 0.26rem;
}

.killing>section p span {
  text-decoration: line-through;
  color: #d3d3d3;
  font-size: 0.16rem;
}

/* 新品上新 */
.new_product.sametop .samep span {
  width: 40%;
}

.new_product.sametop button {
  width: 100%;
}

.new_product section {
  height: 70%;
  justify-content: space-around;
}

.new_product section div {
  height: 100%;
  width: 30%;
}

.new_product section div img {
  height: 80%;
  width: 100%;
}

/* 新人美妆精选 */
.new_pepole {
  width: 100%;
  margin-top: 5%;
  border-bottom: 0.01rem solid #e5e5e5;
}

.new_pepole span {
  padding-right: 5%;
  border-right: 0.01rem solid #b3b3b3;
  font-size: 0.28rem;
  font-weight: bold;
  margin-right: 5%;
}

.new_pepole section {
  margin-top: 3%;
  width: 100%;
  height: 77%;
  display: flex;
  justify-content: space-between;
  padding: 0 2%;
  box-sizing: border-box;
}

.new_pepole section div {
  width: 25%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  align-items: center;
  font-size: 0.2rem;
}

.new_pepole section div img {
  width: 80%;
  height: 80%;
}

/* 超值捡漏+拼团 */
.main_bottom {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 0.2rem;
}

.main_bottom .sameJ {
  width: 50%;
  height: 100%;
  box-sizing: border-box;
  border-right: 0.01rem solid #b3b3b3;
}

.main_bottom .sameJ_p {
  height: 10%;
  font-size: 0.28rem;
  font-weight: bold;
  margin: 2% 0 8% 0;
  box-sizing: border-box;
  padding-left: 5%;
}

.main_bottom section {
  width: 100%;
  height: 70%;
  display: flex;
  justify-content: center;
}

.main_bottom section div {
  width: 40%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.main_bottom section div:first-of-type {
  margin-right: 10%;
}

.main_bottom section img {
  width: 100%;
  height: 90%;
}

/* 商品区 */
.main_goods {
  width: 100%;
}

.main_goods section {
  width: 100%;
  height: 2rem;
  margin-bottom: 0.2rem;
  display: flex;
  justify-content: space-between;
  box-shadow:0.05rem 0.05rem 0.05rem #f8f8f8;
}

.main_goods section div {
  padding-top: 5%;
  box-sizing: border-box;
  width: 50%;
  color: #acacac;
  font-size: 0.28rem;
  font-weight: bolder;
}

.main_goods section div img {
  width: 80%;
  height: 100%;
}

.main_goods_right P:nth-of-type(1) {
  color: #000;
}

.main_goods_right P:nth-of-type(2) {
  margin: 0.2rem 0 0.2rem 0;
  color: #ffa7cc;
}

.main_goods_right button {
  font-size: 0.12rem;
  width: 30%;
  height: 0.3rem;
  background-color: #fff;
  border: 0.01rem solid #ffa7cc;
  border-radius: 0.02rem;
  color: #ffa7cc;
  border-radius: 0.3rem;
}

/* ----------------------------footer---------------------- */
footer {
  width: 100%;
  height: 0.96rem;
  border-top: 0.01rem solid #d3d3d3;
  display: flex;
  justify-content: space-around;
  align-items: center;
  font-size: 0.2rem;
  color: #a1a1a1;
}

footer section {
  height: 0.7rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

footer section.on {
  color: #0084ff;
}

footer .iconfont {
  font-size: 0.4rem;
}

footer .icon-me {
  position: relative;
}

footer .icon-me::after {
  content: "";
  display: block;
  width: 0.12rem;
  height: 0.12rem;
  background: #f1403c;
  border-radius: 0.12rem;
  position: absolute;
  right: -0.04rem;
  top: -0.02rem;
}